package hku.cs.lunuo.handlers;

import hku.cs.lunuo.views.RankView;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.IHandler;
import org.eclipse.jface.viewers.ArrayContentProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.ui.handlers.HandlerUtil;

public class RankvHistoryManage extends AbstractHandler implements IHandler {
	
	
	@Override
	public Object execute(ExecutionEvent event) throws ExecutionException {
		new Dislog(HandlerUtil.getActiveWorkbenchWindow(event)
				.getActivePage().findView(RankView.VIEW_ID).getSite().getShell(), 
				new String[]{"a", "b", "c"},
				new ArrayContentProvider(),  new LabelProvider(),"xx").open();
		
		return null;
	}

}
